﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@page import="entitybean.oc_property_pla.EntityBean_Oc_Property_Pla"%>
<%@page import="entitybean.oc_sea_area_pla.EntityBeanOc_Sea_Area_Pla"%>
<%@page import="entitybean.oc_depthlist_pla.EntityBeanOc_Depthlist_Pla"%>
<%@page import="entitybean.oc_property_tools_pla.EntityBean_Oc_Property_Tools_Pla"%>
<%@page import="form.View_Property_Tools_Pla"%>
<%@page import="entitybean.oc_boat_pla.EntityBeanOc_Boat_Pla"%>
<%
	List<EntityBeanOc_Sea_Area_Pla> list_sea_area=(List<EntityBeanOc_Sea_Area_Pla>)request.getAttribute("list_sea_area");
	@SuppressWarnings("unchecked")
	List<EntityBean_Oc_Property_Pla> oc_property = (List<EntityBean_Oc_Property_Pla>) request
			.getAttribute("oc_property_pla");
			System.out.println("oc_property.size()="+oc_property.size());
    @SuppressWarnings("unchecked")
    List<View_Property_Tools_Pla> view_property_tools_list= (List<View_Property_Tools_Pla>)	request.getAttribute("list_view_property_tools_pla");		
	System.out.println("view_property_tools_list.size()="+view_property_tools_list.size());
	@SuppressWarnings("unchecked")
	List<EntityBeanOc_Boat_Pla> oc_boatlist = (List<EntityBeanOc_Boat_Pla>) request
			.getAttribute("oc_boatlist_pla");
	System.out.println("oc_boatlist.size()="+oc_boatlist.size());
	@SuppressWarnings("unchecked")
	List<EntityBeanOc_Depthlist_Pla> oc_depthlist = (List<EntityBeanOc_Depthlist_Pla>) request
			.getAttribute("oc_depthlist_pla");
			System.out.println("oc_depthlist.size()="+oc_depthlist.size());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>【北极海洋生态系统信息共享平台欢迎您！】</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="dwr/engine.js">
</script>
		<script type="text/javascript" src="dwr/util.js">
</script>
		<script type="text/javascript" src="dwr/interface/voyage.js">
</script>
		<script type="text/javascript" src="js/menu.js">
</script>
		<script language="javascript">
		function reset_me()
		{
			location.reload();
			}
 function if_c_all()
 {
 
  if(document.getElementById("c_all").checked==true)
	{
 	var oc_station=document.getElementsByName("oc_station");
	for(var i=0;i<oc_station.length;i++)
	{
		oc_station[i].checked=true;
		}
	}
 }
 function if_c_none()
 {
 
 if(document.getElementById("c_none").checked==true)
	{
 	var oc_station=document.getElementsByName("oc_station");
	for(var i=0;i<oc_station.length;i++)
	{
		if(oc_station[i].checked==true)
			{oc_station[i].checked=false;}
		else
			{oc_station[i].checked=true;}
		}
	}
 
 }
 function if_c_all_property()
  {
 if(document.getElementById("c_all_property").checked==true)
	{
 	var oc_property=document.getElementsByName("oc_property");
	for(var i=0;i<oc_property.length;i++)
	{
		oc_property[i].checked=true;
		}
	}
 
 }
 function if_c_null_property()
 {
 	if(document.getElementById("c_null_property").checked==true)
	{
 	var oc_property=document.getElementsByName("oc_property");
	for(var i=0;i<oc_property.length;i++)
	{
		if(oc_property[i].checked==true)
			{oc_property[i].checked=false;}
		else
			{oc_property[i].checked=true;}
		}
	}
 
 }
 
 function if_c_all_dep()
 {
 	if(document.getElementById("c_all_dep").checked==true)
	{
 	var oc_depthlist=document.getElementsByName("oc_depthlist");
	for(var i=0;i<oc_depthlist.length;i++)
	{
		oc_depthlist[i].checked=true;
		}
	}
 }
 function if_c_null_dep()
 {
 
 if(document.getElementById("c_null_dep").checked==true)
	{
 	var oc_depthlist=document.getElementsByName("oc_depthlist");
	for(var i=0;i<oc_depthlist.length;i++)
	{
		if(oc_depthlist[i].checked==true)
			{oc_depthlist[i].checked=false;}
		else
			{oc_depthlist[i].checked=true;}
		}
	}
 
 
 }
		function switch_compare()
		{
			//window.alert("切换到比较查询页面");
			//window.alert(document.getElementById("form2").action);
			document.getElementById("form2").submit();
			}
 
function switch_on(id) {
	if(id==1)
	{
	
	var oc_boatname=document.getElementById("oc_boatname").value;
	var oc_voyage=document.getElementById("oc_voyage").value;
	if(oc_boatname==""||oc_boatname=="-1"||oc_boatname==-1)
	{
		document.getElementById("f1").checked=false;
		window.alert("请先确认 科考船~");
		return false;
		}
	if(oc_voyage==""||oc_voyage=="-1"||oc_voyage==-1)
	{
		document.getElementById("f1").checked=false;
		window.alert("请先确认 航次");
		return false;
		}
	}
	if(id==3)
	{
		if (document.getElementById("f3").checked == true)
		{
			var oc_property=document.getElementsByName("oc_property");
			//window.alert(oc_property.length);
			for ( var i = 0; i < oc_property.length; i++) {
				oc_property[i].disabled = true;
				document.getElementById("tools_"+i).disabled=true;
					document.getElementById("max_"+i).disabled=true;
						document.getElementById("min_"+i).disabled=true;
			}
			document.getElementById("d3").disabled=false;
			document.getElementById("e3").disabled=false;
			document.getElementById("max").disabled=false;
			document.getElementById("min").disabled=false;
			}
		else
		{
			var oc_property=document.getElementsByName("oc_property");
			//window.alert(oc_property.length);
			for ( var i = 0; i < oc_property.length; i++) {
				oc_property[i].disabled = false;
				document.getElementById("tools_"+i).disabled=false;
					document.getElementById("max_"+i).disabled=false;
						document.getElementById("min_"+i).disabled=false;
			}
			document.getElementById("d3").disabled=true;
			document.getElementById("e3").disabled=true;
			document.getElementById("max").disabled=true;
			document.getElementById("min").disabled=true;
			
			}
		
		
		
		}
	
	
	
	if(id==2)
	{
		
		if (document.getElementById("f2").checked == true) 
		{
			var oc_depthlist=document.getElementsByName("oc_depthlist");
			document.getElementById("d2").disabled=false;
			//window.alert(oc_depthlist.length);
			for ( var i = 0; i < oc_depthlist.length; i++) {
				oc_depthlist[i].disabled = true;
			}
			}
		else
		{
			document.getElementById("d2").disabled=true;
			var oc_depthlist=document.getElementsByName("oc_depthlist");
			for ( var i = 0; i < oc_depthlist.length; i++) {
				oc_depthlist[i].disabled = false;
			}
			}
		
		}
	
	
	
	
	if (id == 1) {
		if (document.getElementById("f1").checked == true) {
			//window/.alert("将ajax的数据封锁或者影藏");
			document.getElementById("d1").disabled = false;
			var oc_station = document.getElementsByName("oc_station");
			//window.alert(oc_station.length);
			for ( var i = 0; i < oc_station.length; i++) {
				oc_station[i].disabled = true;
			}

			var id = document.getElementById("oc_voyage").value;
			//window.alert("将数据集合加入" + id);
			voyage.Ajax_station_load_pla(id, checkerB);
		} else {
			//window.alert("将ajax的数据封锁或者影藏");
			var oc_station = document.getElementsByName("oc_station");
			//window.alert(oc_station.length);
			for ( var i = 0; i < oc_station.length; i++) {
				oc_station[i].disabled = false;
			}
			//window.alert("将数据集合清空");
			for (k = document.getElementById("d1").children.length - 1; k >= 0; k--) {
				//remove all
				document.getElementById("d1").removeChild(
						document.getElementById

						("d1").children(0));
			}
			var varItem = new Option("请选择", -1);
			document.getElementById("d1").add(varItem);
			document.getElementById("d1").disabled = true;

		}
	}
}
function submit_me() {
	//window.alert("提交相应的数据");
	var f1=document.getElementById("f1").checked;
	var f2=document.getElementById("f2").checked;
	var f3=document.getElementById("f3").checked;
	//window.alert(f1+""+f2+""+f3);
	if(f1==false&&f2==false&&f3==false)
	{
		window.alert("必须选择在 站点 层深  属性中选择一个为单一状态");
		return false;//判断是否有一个位单选
		}
	else
	{
		if(submit_f1()==false)
		{
		return false;
		}
		if(submit_f2()==false)
		{
		return false;
		}
		if(submit_f3()==false)
		{
		return false;	
			}
		var obj=window.confirm("是否要提交数据库查询?");
		if(obj==true)
			{
				var oc_voyage=document.getElementById("oc_voyage").value;

				if(f1==true)//单一的站点
				{
					var oc_station=document.getElementById("d1").value;
					}
				else
				{
					var oc_station="";
					var A_oc_station=document.getElementsByName("oc_station");
					for(var i=0;i<A_oc_station.length;i++)
          			 {
              			 if(A_oc_station[i].checked==true)
               				{         
                  				oc_station=oc_station+A_oc_station[i].value+",";
              				 }
           				}
					}
				if(f2==true)//单一的层深
				{
					var oc_depthlist=document.getElementById("d2").value;					
					}
				else
				{
					var oc_depthlist="";
					var A_oc_depthlist=document.getElementsByName("oc_depthlist");
					for(var i=0;i<A_oc_depthlist.length;i++)
          			 {
               				if(A_oc_depthlist[i].checked==true)
               			{         
                  			oc_depthlist=oc_depthlist+A_oc_depthlist[i].value+",";
              			 }
          				 }
					}	
				if(f3==true)//单一属性
				{
				var oc_property=document.getElementById("d3").value;
				var oc_tools=document.getElementById("e3").value;
				var oc_maxs=document.getElementById("max").value;
				var oc_mins=document.getElementById("min").value;
				//window.alert("oc_property="+oc_property);
				//window.alert("oc_tools="+oc_tools);
				//window.alert("oc_maxs="+oc_maxs);
				//window.alert("oc_mins="+oc_mins);
				
					}
				else
				{
					var oc_property="";
					var A_oc_property=document.getElementsByName("oc_property");
					 for(var i=0;i<A_oc_property.length;i++)
          				 {
              				 if(A_oc_property[i].checked==true)
               				{         
                 	 			oc_property=oc_property+A_oc_property[i].value+",";
               				}
           				}
					
					
					var oc_tools="";
					 for(var i=0;i<A_oc_property.length;i++)
          				 {
              				 if(A_oc_property[i].checked==true)
               				{         
                 	 			oc_tools=oc_tools+document.getElementById("tools_"+i).value+",";
               				}
           				}
					
					
					var oc_maxs="";
					 for(var i=0;i<A_oc_property.length;i++)
          				 {
              				 if(A_oc_property[i].checked==true)
               				{         
                 	 			oc_maxs=oc_maxs+document.getElementById("max_"+i).value+",";
               				}
           				}
					
					
					var oc_mins="";
					 for(var i=0;i<A_oc_property.length;i++)
          				 {
              				 if(A_oc_property[i].checked==true)
               				{         
                 	 			oc_mins=oc_mins+document.getElementById("min_"+i).value+",";
               				}
           				}
					
					
					}
				document.getElementById("form1").H_oc_max.value=oc_maxs;
				document.getElementById("form1").H_oc_min.value=oc_mins;
				document.getElementById("form1").H_oc_tools.value=oc_tools;
				document.getElementById("form1").H_oc_voyage.value=oc_voyage;
				document.getElementById("form1").H_oc_property.value=oc_property;
				document.getElementById("form1").H_oc_station.value=oc_station;
				document.getElementById("form1").H_oc_depthlist.value=oc_depthlist;
				document.getElementById("form1").submit();
			}
		}
}

function submit_f1()
{
	var f1=document.getElementById("f1").checked;
	if(f1==true)//如果是单选站点
	{
		var d1=document.getElementById("d1").value;
		if (d1==""||d1==-1)
		{
			window.alert("请选择一个站点");
			return false;
			}
		}
	
	
	}
function submit_f2()
{
	var f2=document.getElementById("f2").checked;
	if(f2==true)//如果是单选站点
	{
		var d2=document.getElementById("d2").value;
		//window.alert(d2);
		if (d2==""||d2=="-1")
		{
			window.alert("请选择一个层深");
			return false;
			}
		}
	}
function submit_f3()
{
	var f3=document.getElementById("f3").checked;
	if(f3==true)//如果是单选站点
	{
		var d3=document.getElementById("d3").value;
		var e3=document.getElementById("e3").value;
		var max_0=document.getElementById("max").value;
		var min_0=document.getElementById("min").value;
		//window.alert(d3+""+e3+""+max_0+""+min_0);
		if(d3=="-1")
		{
			window.alert("请选择一个属性");
			return false;
			}
		if(e3=="-1")
		{
			window.alert("请选择工具");
			return false;
			
			}
		}
	
	}


function GetXmlHttpObject() {
	var xmlHttp = null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	} catch (e) {
		// Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function checkerC(str)
{
	//window.alert("执行回调函数,填充数据库");
	/*for (k = document.getElementById("e3").children.length - 1; k >= 0; k--) {
		//remove all
		document.getElementById("e3").removeChild(document.getElementById

		("e3").children(0));
	}*/
	//var varItem = new Option("请选择", -1);
	//document.getElementById("e3").add(varItem);
	//var varItem = new Option("传感器(默认)", -1);
	//window.alert("KI");
	document.getElementById("e3").options.length=0; 
	document.getElementById("e3").options.add(new Option("请选择","-1"));	
	strword = str;
	//window.alert("str-->"+str);
	while (strword.indexOf(",") > 0) {
		var key = cut_word(strword, ",");
		var val = cut_word(strword, ",");
		
		document.getElementById("e3").options.add(new Option(val,key));	
		//document.getElementById("e3").add(varItem);
	}
	
	
	
	}





function checkerB(str) {
	//window.alert("执行回调函数,填充数据库");
	/*for (k = document.getElementById("d1").children.length - 1; k >= 0; k--) {
		//remove all
		document.getElementById("d1").removeChild(document.getElementById

		("d1").children(0));
	}*/
	/*var varItem = new Option("请选择", -1);
	document.getElementById("d1").add(varItem);
	strword = str;
	while (strword.indexOf(",") > 0) {
		var key = cut_word(strword, ",");
		var val = cut_word(strword, ",");
		var varItem = new Option(val, key);
		document.getElementById("d1").add(varItem);
	}*/
	document.getElementById("d1").options.length=0; 
	document.getElementById("d1").options.add(new Option("请选择","-1"));	
	strword = str;
	//window.alert("str-->"+str);
	while (strword.indexOf(",") > 0) {
		var key = cut_word(strword, ",");
		var val = cut_word(strword, ",");
		
		document.getElementById("d1").options.add(new Option(val,key));	
		//document.getElementById("e3").add(varItem);
	}
}
function cut_word(str, keyword) {
	var i = str.indexOf(keyword);
	var backword = str.substring(0, i);
	strword = str.substring(i + 1);
	return backword
}

function stateChanged() {
	if (xmlHttp.readyState == 4) {
		document.getElementById("ajax_load_station").innerHTML = xmlHttp.responseText;
	}
}

function load_station() {
	var id = document.getElementById("oc_voyage").value;
	var s_sea_area=document.getElementById("s_sea_area").value;
	var ii = "<%=request.getContextPath()%>/ajax_load_station_pla.do";//绝对地址
	ii = ii + "?id=" + id+"&s_sea_area="+s_sea_area;
	ii = ii + "&sid=" + Math.random();
	ii = ii + "&method=Ajax_voyage_load_page_pla";
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		window.alert("浏览器不支持AJAX");
		return;
	}
	xmlHttp.onreadystatechange = stateChanged;
	xmlHttp.open("GET", ii, true);
	xmlHttp.send(null);
}

////if(id!=-1)
//xmlHttp=GetXmlHttpObject();
//	if (xmlHttp==null)
//	{
//		window.alert ("浏览器不支持AJAX");
//		return;
//	} 

//	xmlHttp.onreadystatechange=stateChanged;
//	xmlHttp.open("GET",url,true);
//	xmlHttp.send(null);
//	{
//	voyage.Ajax_station_load(id,checkerB);
//}

function load_voyage() {
	var id = document.getElementById("oc_boatname").value;
	//window.alert(id);
	if (id != -1) {

		voyage.Ajax_voyage_load_pla(id, checkerA);
	} else {
		for (k = document.getElementById("oc_voyage").children.length - 1; k >= 0; k--) {
			//remove all
			document.getElementById("oc_voyage").removeChild(
					document.getElementById("oc_voyage").children(0));
		}
		var varItem = new Option("请选择", -1);
		document.getElementById("oc_voyage").add(varItem);
	}
}
function load_tools()
{
	var id = document.getElementById("d3").value;
	//window.alert("id="+id);
	/*for (k = document.getElementById("e3").children.length - 1; k >= 0; k--) {
		//remove all
		document.getElementById("e3").removeChild(
				document.getElementById

				("e3").children(0));
	}*/
	voyage.Ajax_tools_load_pla(id, checkerC);
	}
function checkerA(str) {
	/*for (k = document.getElementById("oc_voyage").length - 1; k >= 0; k--) {
		//remove all
		document.getElementById("oc_voyage").removeChild(
				document.getElementById("oc_voyage").children(0));

				
	}*/
	/*document.getElementById("oc_voyage").remove(document.getElementById("oc_voyage").selectedindex);
    document.getElementById("oc_voyage").selectindex=0;
	document.getElementById("oc_voyage").options.add(new Option("请选择","-1"));*/
	document.getElementById("oc_voyage").options.length=0; 
	document.getElementById("oc_voyage").options.add(new Option("请选择","-1"));
	strword = str;
	//window.alert("strowrd="+str);
	while (strword.indexOf(",") > 0) {
		var key = cut_word(strword, ",");
		var val = cut_word(strword, ",");
		//window.alert("key="+key+" val="+val);
		//var varItem = new Option(val, key);
		document.getElementById("oc_voyage").options.add(new Option(val,key));
	}
}
</script>
</head>
	<body>

<%@ include file="top.jsp"%>


		<div class="comparebox">
			<div class="xzzbox">
				<form id="form1" name="form1" method="post" target="_blank"
					action="<%=request.getContextPath()%>/search_function2.do?method=function2">
					<div class="xzdbs">
						选择科考船：
						<select name="oc_boatname" id="oc_boatname"
							onchange="load_voyage()">
							<option value="-1">
								请选择......
							</option>
							<%
								for (int i = 0; i < oc_boatlist.size(); i++) {
							%>
							<option value="<%=oc_boatlist.get(i).getId()%>"><%=oc_boatlist.get(i).getOc_boatname()%></option>

							<%
								}
							%>
						</select>
					</div>
					<div class="xzdbs">
						选择航次：　
						<select name="oc_voyage" id="oc_voyage" onchange="load_station()">
							<option>
								请选择......
							</option>
						</select>
					</div>
					<div class="sx">
						<div class="xzdb" style="padding-top: 8px;">

							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="8%" class="lanse">
										选择站位：
									</td>
									<td width="18%" bgcolor="#fff9d9" class="lanse" id="lanse">
										<input type="checkbox" name="c_all" id="c_all" onclick="if_c_all()"/>
										全选
										<input type="checkbox" name="c_none" id="c_none" onclick="if_c_none()" />
反选 </td>
									<td width="2%" class="lanse">&nbsp;
										

									</td>
									<td width="12%" class="lanse">
										选择某一海域：
									</td>
									<td width="15%">
										<select name="s_sea_area" id="s_sea_area" onchange="load_station()">
											<option value="">
												请选择
											</option>
                                               <%for(int i=0;i<list_sea_area.size();i++){%>
                                            <option value="<%=list_sea_area.get(i).getId()%>">
												<%=list_sea_area.get(i).getOc_sea_area() %>
											</option>
											<%
												}
											%>
										</select>
									</td>
									<td valign="top">
										<br />
									</td>
									<td width="12%" class="lanse">
										单一站点&nbsp;&nbsp;
										<input name="f1" type="checkbox" id="f1"
											onclick="switch_on(1)" value="ok">
									</td>
									<td width="15%" class="lanse">
										<select name="d1" id="d1">
											<option>
												请选择......
											</option>
										</select>
									</td>
									<td width="18%">
										注：以下可使用海图方便用户直接选择
									</td>
								</tr>
								<tr>
									<td colspan="7"></td>
								</tr>
							</table>



					  </div>

						<div class="xzdb" id="box2" style="display: none">

						</div>
						<div id="ajax_load_station">
							<input name="oc_station" type="checkbox" id="oc_station"
								checked="checked" value="-1" />
							显示载入的站点数据
						</div>



					</div>
					<div class="sx">
						<div class="xzdb">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td style="width: 75px;" class="lanse">
										选择层深：
									</td>
									<td width="18%" bgcolor="#fff9d9" class="lanse" id="lanse">
										<input type="checkbox" name="c_all_dep" id="c_all_dep" onclick="if_c_all_dep()"/>
										全选
										<input type="checkbox" name="c_null_dep" id="c_null_dep" onclick="if_c_null_dep()" />
										反选
									</td>
									<td width="2%" class="lanse">&nbsp;
										

									</td>
									<td width="12%" class="lanse">
										选择单一层深:&nbsp;&nbsp;
										<input name="f2" id="f2" type="checkbox" value="ok"
											onclick="switch_on(2)">
									</td>
									<td width="22%" class="lanse">
										<select name="d2" id="d2">
											<option value="-1">
												请选择......
											</option>
                                             <%
								for (int i = 0; i < oc_depthlist.size(); i++) {
							%>
							<option value="<%=oc_depthlist.get(i).getId()%>"><%=oc_depthlist.get(i).getDepth()+"(m)"%></option>

							<%
								}
							%>
                                            
                                            
										</select>
									</td>
									<td width="38%">&nbsp;
										

									</td>
								</tr>
								<tr>
									<td colspan="6">

									</td>
								</tr>
							</table>
						</div>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<%
									for (int i = 0; i < oc_depthlist.size(); i++) {
								%>
								<td height="37">
									<input name="oc_depthlist" type="checkbox" id="oc_depthlist"
										value="<%=oc_depthlist.get(i).getId()%>" checked="checked" />
									<%=oc_depthlist.get(i).getDepth() + "(m)"%></td>
								<%
									}
								%>
							</tr>
						</table>



					</div>
					<div class="sx">
						<div class="xzdb">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="75" class="lanse" style="width: 75px;">
										选择属性：
									</td>
									<td width="168" bgcolor="#fff9d9" class="lanse" id="lanse">
										<input type="checkbox" name="c_all_property" id="c_all_property" onclick="if_c_all_property()" />
										全选
										<input type="checkbox" name="c_null_property" id="c_null_property" onclick="if_c_null_property()" />
										反选
									</td>
									<td width="29" class="lanse">&nbsp;
										

									</td>
									<td width="150" class="lanse">
										选择单一属性：&nbsp;&nbsp;
										<input name="f3" id="f3" type="checkbox" value="ok"
											onclick="switch_on(3)">
									</td>
									<td>
										<select name="d3" id="d3" onchange="load_tools()">
										  <option value="-1">请选择...... </option>
											
											<%
												for (int i = 0; i < oc_property.size(); i++) {
											%>
                                            <option value="<%=oc_property.get(i).getId()%>"><%=oc_property.get(i).getProperty_name()%></option>
											<%} %>
									  </select>
										<select name="e3" id="e3">
											<option value="-1">
												传感器(默认)
											</option>
										</select>
										<input name="max" type="text" class="nir" id="max"
											onfocus="if (value =='最大值...'){value =''}"
                                            onkeyup ="this . value=this.value.replace(/\D/g,'') " 
										    onafterpaste ="this.value=this .value.replace(/\D/g,'') " 
											onblur="if (value ==''){value='最大值...'}" value="最大值..."
											size="12" />
										<input name="min" type="text" class="nir" id="min"
											onfocus="if (value =='最小值...'){value =''}"
                                            onkeyup ="this . value=this.value.replace(/\D/g,'') " 
										    onafterpaste ="this.value=this .value.replace(/\D/g,'') " 
											onblur="if (value =='')

{value='最小值...'}" value="最小值..."
											size="12" />
									</td>
								</tr>
								<tr>
									<td colspan="5">
										<table width="100%" border="0" cellspacing="0" cellpadding="0">

											<%
												for (int i = 0; i < oc_property.size(); i++) {
											%>
											<tr>
												<td width="10%" height="37"><input name="oc_property" type="checkbox" id="oc_property"
														checked="checked"   value="<%=oc_property.get(i).getId()%>" />
										    <%=oc_property.get(i).getProperty_name()%></td>
												<td width="12%">
											  <select name="tools_<%=i%>" id="tools_<%=i%>">
											 <% 
											List<EntityBean_Oc_Property_Tools_Pla>l= view_property_tools_list.get(i).getList_property_tools();
											for(int jk=0;jk<l.size();jk++)
											{
											%>
														<option value="<%=l.get(jk).getId()%>">
															<%=l.get(jk).getTools_name()%>
														</option>
												<%
												} %>
													</select>
												</td>
												<td width="7%">
												  <input name="max_<%=i%>" type="text" class="nir" id="max_<%=i%>"
														onfocus="if (value =='最大值...'){value =''}"
                                                        onkeyup ="this . value=this.value.replace(/\D/g,'') " 
										    onafterpaste ="this.value=this .value.replace(/\D/g,'') " 
														onblur="if (value ==''){value='最大值...'}" value="最大值..."
														size="12" />
												</td>
												<td width="7%">
													<input name="min_<%=i%>" type="text" class="nir" id="min_<%=i%>"
														onfocus="if (value =='最小值...'){value =''}"
                                                        onkeyup ="this . value=this.value.replace(/\D/g,'') " 
										    onafterpaste ="this.value=this .value.replace(/\D/g,'') " 
														onblur="if (value =='')

{value='最小值...'}"
														value="最小值..." size="12" />
												</td>
												<%
													if (i < oc_property.size()-1) {
															i = i + 1;
														}
												%><td width="8%">&nbsp;
													

												</td>
												<td width="8%">&nbsp;
													

												</td>
												<td width="10%" height="37">
												<%if(i!=oc_property.size()-1) 
												{%>
												  <input name="oc_property" type="checkbox" id="oc_property"
														checked="checked"   value="<%=oc_property.get(i).getId()%>" />
													<%=oc_property.get(i).getProperty_name()%></td>
												<td width="12%">
											  <select name="tools_<%=i%>" id="tools_<%=i%>">
														 <% 
											l= view_property_tools_list.get(i).getList_property_tools();
											for(int jk=0;jk<l.size();jk++)
											{
											%>
														<option value="<%=l.get(jk).getId()%>">
															<%=l.get(jk).getTools_name()%>
														</option>
												<%
												} %>
												  </select>
												</td>
												<td width="7%">
													<input name="max_<%=i%>" type="text" class="nir" id="max_<%=i%>"
														onfocus="if (value =='最大值...'){value =''}"
                                                        onkeyup ="this . value=this.value.replace(/\D/g,'') " 
										    onafterpaste ="this.value=this .value.replace(/\D/g,'') " 
														onblur="if (value ==''){value='最大值...'}" value="最大值..."
														size="12" />
												</td>
												<td width="7%">
													<input name="min_<%=i%>" type="text" class="nir" id="min_<%=i%>"
														onfocus="if (value =='最小值...'){value =''}"
                                                        onkeyup ="this . value=this.value.replace(/\D/g,'') " 
										    onafterpaste ="this.value=this .value.replace(/\D/g,'') " 
														onblur="if (value =='')

{value='最小值...'}"
														value="最小值..." size="12" />
														<%
														}
														 %>
												</td>
										  </tr>
											<%
												}
											%>
										</table>



									</td>
								</tr>
							</table>
						</div>

						<div class="xzdb" id="box4" style="display: none">

						</div>
					


						<input type="hidden" name="H_oc_tools" id="H_oc_tools" />
                        <input type="hidden" name="H_oc_max" id="H_oc_max" />
                        <input type="hidden" name="H_oc_min" id="H_oc_min" />
						<input type="hidden" name="H_oc_voyage" id="H_oc_voyage" />
						<input type="hidden" name="H_oc_property" id="H_oc_property" />
						<input type="hidden" name="H_oc_station" id="H_oc_station" />
						<input type="hidden" name="H_oc_depthlist" id="H_oc_depthlist" />

					</div>

					<div class="ann">
						<input class="comparexz" name="search" type="button" id="search" onclick="submit_me()" />
						<input class="comparexzcz" name="search" type="button" id="search" onclick="reset_me()" />
				     <div class="duibi" style="padding-top:50px"><span class="osfv"><a href="init_compare_pla.do?method=init_compare_pla">对比查询</a></span></div>
					</div>
			</div>
			</form>

			<form id="form2" name="form2" method="post" action="<%=request.getContextPath()%>/init_compare.do?method=init_compare">
			
			<input type="hidden" id="function"  name="function" value="1"/>			</form>
		</div>
		
		
		
		<%@ include file="footer.jsp"%>
	</body>
   
</html>
